<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	template="template/ui.xhtml">
	<ui:define name="body">
		<h3>Welcome to PrimeDropBox</h3>
		
		<h:form id="primeForm">
		
			<p:growl id="messages" showDetail="true" />  
		
			<p:panelGrid columns="2">  
			    <f:facet name="header">  
			        Login
			    </f:facet>  
			  
			    <h:outputLabel for="lname" value="Name: " />  
			    <p:inputText id="lname" value="#{loginController.name}" label="Name" />  
			  
			    <h:outputLabel for="pwd" value="Password: " />  
			    <p:password  id="pwd" value="#{loginController.password}" required="true" label="Password" password="true"/>  
			  
				<f:facet name="footer">  
			        <p:commandButton value="Login" icon="ui-icon-home" style="margin:0" action="#{loginController.login}" ajax="false"/>  
			    </f:facet>
			</p:panelGrid>  
			
		</h:form>
	</ui:define>
</ui:composition>